package com.rbac.api.controller.request;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;

///管理员增加
public class PostUserAddRequest {

    ///登录账号
    @NotEmpty(message = "post.common.user.account.not.null")
    @Size(max = 32,message = "post.common.user.account.max.length.fail")
    private String userAccount;
    ///管理员昵称
    @NotEmpty(message = "post.common.user.name.not.null")
    @Size(max = 20,message = "post.common.user.name.max.length.fail")
    private String userName;
    ///登录密码
    @NotEmpty(message = "post.common.user.pwd.not.null")
    @Size(min = 6,max = 16,message = "post.common.user.pwd.length.fail")
    private String userPwd;



    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }


    @Override
    public String toString() {
        return "PostUserAddRequest{" +
                "userAccount='" + userAccount + '\'' +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                '}';
    }





}
